package com.taobao.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taobao.common.bean.EZUIResult;
import com.taobao.service.IItemService;


@Controller
public class ItemsController {
	@Autowired
	IItemService itemService;
	
	@RequestMapping(value="/item/list")
	@ResponseBody
	public EZUIResult test(Integer page,Integer rows) {
		EZUIResult itemList = itemService.getItemList(page, rows);
		
		return itemList;
	}
}
